<template>
  <div class="com__box">
    <!-- loading -->
    <div class="loading">
      <div></div>
    </div>

    <!-- 说明：组件名 -->
    <h4 class="explain">L58.vue</h4>
  </div>
</template>

<style lang="scss" scoped>
.loading,
.loading > div {
  position: relative;
  box-sizing: border-box;
}

.loading {
  display: block;
  font-size: 0;
  color: #000;
}

.loading.la-dark {
  color: #333;
}

.loading > div {
  display: inline-block;
  float: none;
  background-color: currentColor;
  border: 0 solid currentColor;
}

.loading {
  width: 32px;
  height: 16px;
}

.loading > div {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
  border-style: solid;
  border-width: 16px;
  border-top-width: 0;
  border-right-color: transparent;
  border-left-color: transparent;
  animation: triangle-skew-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9)
    infinite;
}

.loading.la-sm {
  width: 16px;
  height: 8px;
}

.loading.la-sm > div {
  border-width: 8px;
  border-top-width: 0;
}

.loading.la-2x {
  width: 64px;
  height: 32px;
}

.loading.la-2x > div {
  border-width: 32px;
  border-top-width: 0;
}

.loading.la-3x {
  width: 96px;
  height: 48px;
}

.loading.la-3x > div {
  border-width: 48px;
  border-top-width: 0;
}

@keyframes triangle-skew-spin {
  0% {
    transform: perspective(100px) rotateX(0) rotateY(0);
  }

  25% {
    transform: perspective(100px) rotateX(180deg) rotateY(0);
  }

  50% {
    transform: perspective(100px) rotateX(180deg) rotateY(180deg);
  }

  75% {
    transform: perspective(100px) rotateX(0) rotateY(180deg);
  }

  100% {
    transform: perspective(100px) rotateX(0) rotateY(360deg);
  }
}
</style>
